from Get_Token import Get_Token
import requests
import json
from Read_conifg import ReadConfig
from Get_Info import Get_Info
def Detail_By_No(order_Num):
    Token=Get_Token().Get_Khd_Token()
    headers={"Token":Token}
    url=ReadConfig().get_http("url_khd")+"KhdMedOrder/detailByNo"
    body={"orderNo":order_Num,"pbmId":"1","uid":Get_Info().Get_login_id()}
    res=requests.post(url=url,json=body,headers=headers)
    res_json=json.loads(res.text)
    try:
        return res_json["data"]["处方信息"][0]["url"]
    except:
        return "获取处方图片路径失败！"
